#ifndef DATA_GLOBALOBJECTSARRAY_H
#define DATA_GLOBALOBJECTSARRAY_H

#include "iglobalobject.hpp"

namespace Data {

class GlobalObjectsArray
{
public:
    typedef std::list<IGlobalObject *>::const_iterator Iterator;

    GlobalObjectsArray();
    virtual ~GlobalObjectsArray();

    void addObject(IGlobalObject *object);
    void removeObject(IGlobalObject *object);

    Iterator begin() const;
    Iterator end() const;

private:
    std::list<IGlobalObject *> _objects;
};

} // namespace Data

#endif // DATA_GLOBALOBJECTSARRAY_H
